/**
 * Created by wdcy336 on 2015/7/23.
 */
Ext.define('Monkey.store.BaseStore', {
    extend: 'Ext.data.Store',

    listeners: {
        load: function (o, records, success, eOpts) {
            var result = Ext.decode(eOpts._response.responseText);
            //console.log(result);
            if (!result.success && result.responseCode == Monkey.ResponseCode.NOT_LOGIN) {
                //进入登录页面
                Ext.getCmp('mainView').getController().toLoginPage();
            }
        }
    }
})
;